////弹出警示框
//alert("WEB2104");
//alert("javascript");
////弹出提示框
//var unme = prompt("input user name");
//var upwd = prompt("input password");
//console.log(unme,type unme,upwd,type upwd);
//var p1 = prompt("input number"),p2=prompt("input number2"),p3;
//p3 = Number(p1)+Number(p2);
//alert( p3 );
//
//var pic=prompt("input pic"),psc=prompt("input psc"),p;
//p = pic*psc;
//if(p >= 1000){
// p *= 0.9
//};
//if(p >= 1200){
// alert("pay success")
//}
// else{
// alert("pay error")
//};


var pic=prompt("input pic"),psc=prompt("input psc"),p;
p = pic*psc;

if(p >= 1000){
 p *= 0.9
};
 console.log(p)
if(p >= 1200){
 alert("pay error")
}
 else{
 alert("pay success")
};
